#ifndef MESSAGETIP_H
#define MESSAGETIP_H

#include <QWidget>
#include "tipsbox.h"
#include "global.h"

#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QDebug>
#include <QResizeEvent>
#include <QTimer>
QT_BEGIN_NAMESPACE
namespace Ui { class MessageTip; }
QT_END_NAMESPACE

class MessageTip : public QWidget
{
    Q_OBJECT

public:
    MessageTip(QWidget *parent = nullptr);
    ~MessageTip();

    void resizeEvent(QResizeEvent *event) override;

    void moveEvent(QMoveEvent *event) override;

private slots:

    void on_pb_warning_clicked();

    void on_pb_error_clicked();

    void on_pb_tip_clicked();

    void on_pb_success_clicked();
private slots:

    void on_pb_close_clicked();

    void on_pb_option_clicked();

    void on_pb_error_2_clicked();

    void on_pb_tip_2_clicked();

    void on_pb_waring_clicked();

signals:

    void colseBox();
private:
    Ui::MessageTip *ui;

    QList<TipsBox*> TipList;
    QVBoxLayout *mLayout;
    int mCurrentHeight = 0;
//    TipsBox tip;
    QVBoxLayout* m_messageLayout;
//    QTimer *time;
    int count = 0;
};
#endif // MESSAGETIP_H
